import requests

API_URL = "https://ai.gitee.com/api/inference-api/models/hf-models/bert-base-chinese"
headers = {
	"Authorization": "Bearer ",
	"X-Compute-Id": "iluvatar/prod-il-ya-itp/inference/gpu/large/bi100",
	"Content-Type": "application/json"
}

def query(payload):
	response = requests.post(API_URL, headers=headers, json=payload)
	return response.json()

output = query({
	"inputs": "The answer to the universe is [MASK].",
})